home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MIGRATE User Commands MIGRATE
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- migrate - Migrate a command to another machine
-
- SSYYNNOOPPSSIISS
- mmiiggrraattee [--BBbbvvllDD] [[--hh _h_o_s_t] | [--HH _h_o_s_t_I_D]] [--pp _p_r_o_c_e_s_s_I_D]
- [(--EE _c_m_d arg0 | _c_m_d) _a_r_g_s ...]
-
- _________________________________________________________________
-
- IINNTTRROODDUUCCTTIIOONN
- This command is used to execute commands remotely using the
- Sprite process migration facility. It may be used to exe-
- cute commands on a particular machine or to select from idle
- machines; and it may execute a command specified by the
- arguments to the mmiiggrraattee program, or an interactive shell.
-
- SSEELLEECCTTIINNGG AA HHOOSSTT
- --BB The --BB specifies that the host should be selected at
- ``background'' priority, rather than at the priority
- used for other tasks such as compilations.
-
- --hh
-
- --HH By default, a host is selected from among the idle
- hosts available on the local network. This host is
- then marked as being in use for the duration of the
- command being executed; the host will not be chosen for
- remote execution of other processes in the meantime.
- If a host is specified with the --hh or --HH options, then
- the ``in-use'' flag is bypassed; this is useful when
- invoking mmiiggrraattee as a ``remote login'' facility to exe-
- cute commands directly on another host. The --hh flag
- specifies a host by name, and the --HH flag specifies it
- by spriteID (thereby bypassing the host database lookup
- to convert from name to internal numeric identifier).
-
- --ll If no host is specified and no idle host is available,
- the command is not executed unless the --ll option is
- specified, in which case the command is executed
- locally. The ``--ll'' option similiarly affects the
- disposition of the command if migrating to the other
- host fails.
-
- EEXXEECCUUTTIINNGG AA CCOOMMMMAANNDD
- To execute a single command remotely, the command may be
- specified by placing the command and its arguments after any
- options to mmiiggrraattee. If no command is specified, an interac-
- tive shell is created. If the SSHHEELLLL environment variable is
- present, that shell is invoked, otherwise ccsshh is invoked.
- In any case, the exit status from the subprocess is returned
- by mmiiggrraattee.
-
-
-
-
- Sprite v.1.0 Printed: April 3, 1991 1
-
-
-
-
-
-
- MIGRATE User Commands MIGRATE
-
-
-
- --EE _c_o_m_m_a_n_d
- In some circumstances, programs may be invoked with
- aarrggvv[[00]] different from the name of the command. In
- this case, the --EE option may be used to specify the
- name of a file to execute, and the first argument after
- the option list specifies the value of aarrggvv[[00]]. Oth-
- erwise, aarrggvv[[00]] is set to the name of the command that
- is invoked.
-
- MMIIGGRRAATTIINNGG AA CCUURRRREENNTT PPRROOCCEESSSS
- --pp To migrate a process that is already executing, invoke
- mmiiggrraattee with the --pp option, giving the process ID of
- the process to migrate (in hex notation). Each process
- must be migrated individually, in separate runs of
- mmiiggrraattee.
-
- OOTTHHEERR OOPPTTIIOONNSS
- --bb The --bb option may be used to enter ``background mode'',
- in which mmiiggrraattee executes a command and returns immedi-
- ately, printing the process identifier of the migrated
- child. Thus,
- mmiiggrraattee xxyyzzzzyy&&
- is different from
- mmiiggrraattee --bb xxyyzzzzyy.
- The process identifier for the former case is printed
- by the shell, and it corresponds to the mmiiggrraattee pro-
- cess; while the process identifier in the latter case
- corresponds to the migrated child itself. In the
- former case, normal ccsshh job control may be used to
- foreground and background the migrated child, but in
- the latter case, the process is not controlled by ccsshh.
-
- --vv The --vv option may be used to enter ``verbose mode'', in
- which case the host selected for migration is printed,
- or a message that no host could be selected is printed
- if the command is executed locally due to the --ll
- option.
-
- --DD The --DD option enables ``debug mode'', which causes
- various debugging statements to be printed as the pro-
- gram executes.
-
- SSEEEE AALLSSOO
- migrate, db, xload, pmake, loadavg, csh, ps
-
- FFIILLEESS
- //sspprriittee//aaddmmiinn//ddaattaa//mmiiggIInnffoo - the global migration database
- file.
-
- KKEEYYWWOORRDDSS
- process migration, load average, uptime, idle time, data-
- base, remote execution
-
-
-
- Sprite v.1.0 Printed: April 3, 1991 2
-
-
-
-
-
-
- MIGRATE User Commands MIGRATE
-
-
-
- BBUUGGSS
- If a process that is executing remotely is evicted when that
- machine is no longer available, the process will continue to
- execute locally. This is nearly completely transparent to
- the user (ppss --mm will no longer show the process as
- migrated). Even if the host were not selected as an ``idle
- host'', the migrated process can be evicted if the other
- host goes from being available to being unavailable.
-
- If another host is selected at random to migrate a process
- that is already running, when that process exits the remote
- host, the remote host will remain flagged as ``in use'' for
- a short period of time. This is because the mmiiggrraattee process
- cannot conveniently wait for a process that isn't its child.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: April 3, 1991 3
-
-
-
-